<template>
  <div class="">
    <p class="rh-tit">
      在使用智能检索时，可以使用检索命令组成检索表达式进行精准检索，目前平台仅支持专利及论文可使用表达式检索。例如输入：A/太阳能，则检索标题、摘要、权利要求中包括“太阳能”检索词的数据。检索表达式中的所有通配符均需使用英文状态符号，进行多条件的复杂检索时，多条件之间可以使用连接符，也可使用括号来改变检索式的优先级。具体命令代码参考如下：
    </p>
    <el-table
      class="table"
      :data="tableData"
      style="width: 100%"
      border
      :span-method="objectSpanMethod"
      v-loading="loading"
      header-row-class-name="hc"
    >
      <el-table-column prop="code" label="命令代码" width="160">
      </el-table-column>
      <el-table-column prop="name" label="名称" width="160"> </el-table-column>
      <el-table-column prop="date" label="说明"> </el-table-column>
    </el-table>
    <!-- <el-pagination
      background
      layout="prev, pager, next"
      :total="total"
      @current-change="handleCurrentChange"
      :current-page.sync="searchInfo.page"
    >
    </el-pagination> -->
  </div>
</template>
<script>
export default {
  data() {
    return {
      loading: false,
      tableData: [
        {
          code: "R/",
          name: "语义检索",
          date:
            "用输入的词、句子、段落、文章，对输入的内容进行向量检索，结果按匹配度进行排序",
          rowspan: 1,
        },
        {
          code: "TTL/",
          name: "标题",
          date: "专利标题包含的关键词",
          rowspan: 2,
        },
        {
          code: "TTL/",
          name: "标题",
          date: "TTL/智能 或者TTL/(手机 and 智能)",
          rowspan: 0,
        },
        {
          code: "ABST/",
          name: "摘要",
          date: "专利摘要包含的关键词",
          rowspan: 2,
        },
        {
          code: "ABST/",
          name: "摘要",
          date: "ABST/智能 或者AB/智能（ABST/可以缩写为AB/）",
          rowspan: 0,
        },
        {
          code: "ACLM/",
          name: "权利要求",
          date: "专利权利要求包含的关键词",
          rowspan: 2,
        },
        {
          code: "ACLM/",
          name: "权利要求",
          date: "ACLM/智能手机",
          rowspan: 0,
        },
        {
          code: "A/",
          name: "标题摘要权利要求",
          date: "标题或者摘要或权利要求中含有的关键词",
          rowspan: 2,
        },
        {
          code: "A/",
          name: "标题摘要权利要求",
          date: "A/智能=TTL/智能 or ABST/智能 or ACLM/智能",
          rowspan: 0,
        },
        {
          code: "B/",
          name: "全文",
          date: "全文关键词检索，包括专利文献所有文字。基础检索默认字段",
          rowspan: 1,
        },
        {
          code: "SPEC/",
          name: "说明",
          date: "专利说明书（描述）部分包含的关键词",
          rowspan: 1,
        },
        {
          code: "AN/",
          name: "申请人",
          date: "申请人名称关键词检索，输入全称或名称开头部分内容",
          rowspan: 2,
        },
        {
          code: "AN/",
          name: "申请人",
          date: "AN/SAMSUNG ELECTRONICS 或者 AN/SAMSUNG",
          rowspan: 0,
        },
        {
          code: "IN/",
          name: "发明人",
          date: "发明人检索，输入完整姓名或姓名中部分内容",
          rowspan: 2,
        },
        {
          code: "IN/",
          name: "发明人",
          date: "IN/王小明或者IN/小明",
          rowspan: 0,
        },
        {
          code: "PN/",
          name: "公开/公告号",
          date: "采用公开号显示，专利号是指公开号、公布号",
          rowspan: 2,
        },
        {
          code: "PN/",
          name: "公开/公告号",
          date: "示例1：PN/US34567890",
          rowspan: 0,
        },
        {
          code: "APN/",
          name: "申请号",
          date: "申请号检索可以忽略小数点后的数字",
          rowspan: 2,
        },
        {
          code: "APN/",
          name: "申请号",
          date: "APN/CN201310116892.7或者APN/CN201310116892",
          rowspan: 0,
        },
      ],
      total: 10,
      searchInfo: {
        page: 1,
        pageSize: 10,
      },
    };
  },
  created() {
    // this.search();
  },
  methods: {
    // handleCurrentChange(val) {
    //   this.searchInfo.page = val;
    //   this.search();
    // },
    // search() {
    //   this.loading = true;
    //   this.$post(this.$Url.personal, this.searchInfo).then((res) => {
    //     const data = res.data;
    //     this.loading = false;
    //     this.total = data.total;
    //     this.tableData = data.result;
    //   });
    // },
    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
      //   console.log(row, column, rowIndex, columnIndex);
      if (columnIndex == 0 || columnIndex == 1) {
        if (row.rowspan != 0) {
          return {
            rowspan: row.rowspan,
            colspan: 1,
          };
        } else {
          return {
            rowspan: 0,
            colspan: 0,
          };
        }
      }
    },
  },
};
</script>
<style lang="scss" scoped>
.table {
  margin: 10px 0 20px;
  ::v-deep .hc {
    color: #fff;
    .el-table__cell {
      background-color: $mainColor;
    }
  }
}
.rh-tit {
  margin: 20px 0;
  text-indent: 2em;
  line-height: 30px;
}
</style>
